Using pdpyras I’m getting a 400 error with the following code:
session.rput(‘incidents’, json=[{“id” : id, “note” : { “content” : note }} ] )
Alternatively I get a 404 error with this variation of code:
session.rput(’/incidents/’+id+’/notes’, json=[ { “content” : note }} ] )
This 404 exception returns a valid endpoint (’/incidents/ID/notes’) which I can query and read existing notes.
All other operations are functioning. Notes creation is the only issue so I assume it’s a simple formatting issue of some kind. Can anybody spot the mistake?